<template>
  <div class="navBar">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="center">
      <slot name="center"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'navBar',
}
</script>
<style scoped lang="scss">
.navBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  height: 50px;
  line-height: 50px;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  text-align: center;
  vertical-align: middle;
}
.left {
  display: inline-block;
  width: 50px;
  overflow: hidden;
}
.center {
  flex: 1;
}
.right {
  display: inline-block;
  width: 50px;
}
</style>
